#include <iostream>

class RentHouse
{
public:
    virtual void renthouse() = 0;
private:
    ;
};
class Landlord : public RentHouse
{
public:
    void renthouse() override
    {
        std::cout << "租出去" << std::endl;
    }
private:
    ;
};
class Intermediary : public RentHouse
{
public:
    void renthouse() override
    {
        std::cout << "招一个租客" << std::endl;
        _landlord.renthouse();
    }
private:
    Landlord _landlord;
};

int main()
{
    Intermediary intermediary;
    intermediary.renthouse();

    return 0;
}